package game;

import javax.swing.*;

import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class LeaderboardState extends JPanel implements WindowComponent{


	private static final long serialVersionUID = 1L;
	private JButton backButton;
	public LeaderboardState()  {
		setLayout(null);
		initialize();
	}
	private void initialize() {
		backButton = new JButton("Back");
		backButton.setBounds(500, 520, 275, 45);
		backButton.setOpaque(false);
		backButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				FRAME.getContentPane().removeAll();
				FRAME.getContentPane().add(MENU_PANEL).setVisible(true);
				LEADERBOARD_PANEL.setVisible(false);
				
			}
		});
		add(backButton);
	}

}
